package entities;

import java.io.Serializable;
import java.lang.String;

/**
 * ID class for entity: Contatto
 *
 */ 
public class ContattoPK  implements Serializable {   
   
	         
	private String utenteid;         
	private String contattoid;
	private static final long serialVersionUID = 1L;

	public ContattoPK() {}

	

	public String getUtenteid() {
		return this.utenteid;
	}

	public void setUtenteid(String utenteid) {
		this.utenteid = utenteid;
	}
	

	public String getContattoid() {
		return this.contattoid;
	}

	public void setContattoid(String contattoid) {
		this.contattoid = contattoid;
	}
	
   
	/*
	 * @see java.lang.Object#equals(Object)
	 */	
	public boolean equals(Object o) {
		if (o == this) {
			return true;
		}
		if (!(o instanceof ContattoPK)) {
			return false;
		}
		ContattoPK other = (ContattoPK) o;
		return true
			&& (getUtenteid() == null ? other.getUtenteid() == null : getUtenteid().equals(other.getUtenteid()))
			&& (getContattoid() == null ? other.getContattoid() == null : getContattoid().equals(other.getContattoid()));
	}
	
	/*	 
	 * @see java.lang.Object#hashCode()
	 */	
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (getUtenteid() == null ? 0 : getUtenteid().hashCode());
		result = prime * result + (getContattoid() == null ? 0 : getContattoid().hashCode());
		return result;
	}
   
   
}
